<?php
/* search.inc 2006-07-02 12:48:44
   Conference Registration - Registration for conferences - A XOOPS CMS Module
   Copyright (c) 2006 Kevin van Haaren, US
   URL:     http://www.superfantasmoworld.com/
   Contact: kevin@vanhaaren.net
 	
   XOOPS
   Copyright (c) 2000 XOOPS.org
   URL:     http://www.xoops.org/
    
   This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    
 */
 
//The next comment block is for PHPDocumentor
/**
 * Conference Registration - Registration for conferences
 * 
 * Xoops search system integration
 * 
 * @author Kevin van Haaren (kevin@vanhaaren.net)
 * @copyright 2006 Kevin van Haaren, US
 * @package CONFREG
 * @subpackage Xoops_Integration
 * 
 */

if ( file_exists( XOOPS_ROOT_PATH."/modules/confreg/header.inc" ) ) {

	/**

 	* CONFREG header

 	*/

    include_once XOOPS_ROOT_PATH."/modules/confreg/header.inc";

} else {

	die("Unable to load CONFREG header file);

}



/**

 * Search CONFREG module for items matching the requested query

 *

 * See other module search functions for information on how to construct

 * this function

 *

 * @param array $queryarray array of words to search for

 * @param string $andor Either 'AND' or 'OR'

 * @param int $limit maximum number of items to retrieve

 * @param int $offset offset into data table to start search from

 * @param int $userif Id of item submitter

 * @return array item information array

 */

function confreg_search($queryarray, $andor, $limit, $offset, $userid){

	/**

	 * @global Xoops database handler

	 */

	global $xoopsDB;

	//construct your sql seach string

	$sql = '';

	$result = $xoopsDB->query($sql,$limit,$offset);

	$ret = array();

	$i = 0;

 	while($myrow = $xoopsDB->fetchArray($result)){

		$ret[$i]['image'] = ""; //link image

		$ret[$i]['link'] = "";  //url for user to click on

		$ret[$i]['title'] = ""; //item title

		$ret[$i]['time'] = "";  //date and time of item submission

		$ret[$i]['uid'] = "";   //item submitter id

		$i++;

	}

	return $ret;

}




/*
 * This file was generated by XBS ModGen, (c) 2006 A Kitson, UK. See http://xoobs.net
 * ModGen is a Module Code Generator for the Xoops CMS.  See http://xoops.org
 */
?>